package com.wzp.PO;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

public class Paging implements Serializable{

	private static final long serialVersionUID = -6380713336670403345L;

	public Paging(){};
	
	private List<?> data= Collections.EMPTY_LIST;
	
	private Integer page = Integer.valueOf(0);//页数
	
	private Integer rows = Integer.valueOf(5);//条数
	
	private Integer totalPage = Integer.valueOf(0);//总页数
	
	private Integer totalRecords = Integer.valueOf(0);//总记录
	
	private Integer noPage = Integer.valueOf(0);
	
	public Paging(Integer page, Integer rows){
		this.page = page;
		this.rows = rows; 
	}

	public List<?> getData() {
		return data;
	}

	public void setData(List<?> data) {
		this.data = data;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = (page-1)*3;
	}

	public Integer getRows() {
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public Integer getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}

	public Integer getTotalRecords() {
		return totalRecords;
	}

	public void setTotalRecords(Integer totalRecords) {
		this.totalRecords = totalRecords;
	}

	public Integer getNoPage() {
		return noPage;
	}

	public void setNoPage(Integer noPage) {
		this.noPage = noPage;
	}
	
	
	
}
